﻿@model Citi.Scheduler.WebUi.Models.RoutineErrorHistoryModel
<script type="text/javascript">
    function openUpdateRoutineErrorHistoryDialog() {
        $("#divUpdateRoutineErrorHistory").dialog({ modal: true, resizable: false });
    }
</script>
@Ajax.ActionLink("Create new", "ActionForm", new { id = (int?)null, routineErrorId = Model.RoutineErrorId }, new AjaxOptions
{
    UpdateTargetId = "divUpdateRoutineErrorHistory",
    OnComplete = "openUpdateRoutineErrorHistoryDialog"
}, new { @class = "" })
<br />
<br />
<div id="divIndexRoutineErrorHistory">
    @Html.Action("Index", new { routineErrorId = Model.RoutineErrorId })
</div>
<div id="divUpdateRoutineErrorHistory" title="Error Status">
</div>
